-
Notifications
You must be signed in to change notification settings - Fork 19.6k
[OpenVINO Backend] update __getitem__ #21359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #21359 +/- ##
==========================================
+ Coverage 82.70% 82.71% +0.01%
==========================================
Files 565 565
Lines 54894 55150 +256
Branches 8517 8590 +73
==========================================
+ Hits 45398 45619 +221
- Misses 7415 7425 +10
- Partials 2081 2106 +25
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
88938fd
to
5043d78
Compare
5043d78
to
91aa315
Compare
e7f4898
to
0ba9c10
Compare
d274a50
to
6ddb1b4
Compare
4a1d931
to
08aebcf
Compare
@Mohamed-Ashraf273, can you add your tests to sources as well? |
keras/src/backend/openvino/core.py
Outdated
) | ||
if index_type != Type.i32: | ||
index = ov_opset.convert(index, Type.i32).output(0) | ||
shape_tensor = ov_opset.shape_of(data) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can specify output type to i32 then you don't need convert below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
08aebcf
to
47c145c
Compare
@rkazants |
Hi @rkazants , |
067e7de
to
08daf79
Compare
Hi @rkazants , |
08daf79
to
48e69db
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fchollet, looks good to me. Recommend to merge
Hi @rkazants ,
I've updated
__getitem__
usinggather_nd
as suggested, and I've avoided usingconvert_to_numpy
. Also, I've enabledvariables_test
.__getitem__
passed all tests aviable + I've tested it locally.Here are my test cases:
The PR is ready for review.